package com.shuoyue.ycgk.ui.mine.mynote.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.baseadapter.AppBaseQuickAdapter;
import com.shuoyue.ycgk.entity.SectionType;

import java.util.List;

public class SectionAdapter extends AppBaseQuickAdapter<SectionType> {

    public SectionAdapter(@Nullable List<SectionType> data) {
        super(R.layout.item_collection_type, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, SectionType item) {
        helper.addOnClickListener(R.id.title);
        helper.setText(R.id.title, item.getSectionName());
        helper.setText(R.id.num, String.valueOf(item.getCount()));
        helper.setVisible(R.id.icon, false);
        helper.setGone(R.id.lay_num, true);
    }



}
